export default {
  methods: {
    checkPointPermission(point) {
      const _points = this.$store.state.user.userInfo.roles.points
      // 存在就是true
      // 反之就是false
      return _points.includes(point)
    },
    // 判断是否可以显示中某个页面级别的按钮
    checkMenuPermission(menu) {
      const _menu = this.$store.state.user.userInfo.roles.menus
      // 存在就是true
      // 反之就是false
      return _menu.includes(menu)
    }
  }
}
